﻿using MyCode.Project.Domain.Message.Response.ServiceOrder;
using MyCode.Project.Domain.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCode.Project.Domain.Message.Response.User
{
    #region 会员信息
    /// <summary>
    /// 会员Resp
    /// </summary>
    public class MemberResp
    {
        /// <summary>
        /// 会员营销顾问关系主键ID
        /// </summary>
        public Guid ID { get; set; }

        /// <summary>
        /// 会员名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string Mobile { get; set; }

        /// <summary>
        /// 人脸识别主键
        /// </summary>
        public string FaceId { get; set; }

        /// <summary>
        /// 人脸识别图片集合数量
        /// </summary>
        public int FaceCount { get; set; }

        /// <summary>
        /// 会员余额
        /// </summary>
        public decimal? Account { get; set; }

        /// <summary>
        /// 会员主键ID
        /// </summary>
        public Guid? MemberId { get; set; }
    }
    #endregion

    #region 会员管理-会员信息列表
    /// <summary>
    /// 会员Resp
    /// </summary>
    public class MemberCusResp
    {
        /// <summary>
        /// 会员营销顾问关系主键ID
        /// </summary>
        public Guid ID { get; set; }

        /// <summary>
        /// 会员ID
        /// </summary>
        public Guid MemberID { get; set; }

        /// <summary>
        /// 会员名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 销售顾问名称
        /// </summary>
        public string ClerkName { get; set; }

        /// <summary>
        /// Desc:头像地址
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string HeadImgUrl { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string Mobile { get; set; }

        /// <summary>
        /// 等级
        /// </summary>
        public string GradeName { get; set; }


        /// <summary>
        /// 等级图标对应字段
        /// </summary>
        public int GradeNum { get; set; }

        /// <summary>
        /// 会员等级ICON地址
        /// </summary>
        public string GradeIconUrl { get; set; }


        /// <summary>
        /// 余额
        /// </summary>
        public decimal? Account { get; set; }

        /// <summary>
        /// 生日
        /// </summary>
        public string BirthDay { get; set; }

        /// <summary>
        /// 上次到店时间
        /// </summary>
        public string LastShopTime { get; set; }

        /// <summary>
        /// 回店提醒时间
        /// </summary>
        public string RecentRemindersTime { get; set; }

        /// <summary>
        /// 店员ID
        /// </summary>
        public Guid ClerkID { get; set; }

        /// <summary>
        /// 剩余服务次数
        /// </summary>
        public int? ServiceQty { get; set; }

        /// <summary>
        /// 1=已绑定营销关系的会员 0=未绑定营销关系的会员
        /// </summary>
        public int IfNormal { get; set; }
    }
    #endregion

    public class MemberStatistics
    {
        /// <summary>
        /// 门店会员人数统计
        /// </summary>
        public int ShopMemberSta { get; set; }

        /// <summary>
        /// 我的会员人数统计
        /// </summary>
        public int MemberSta { get; set; }

        /// <summary>
        /// 我的会员余额
        /// </summary>
        public decimal MyBalance { get; set; }

        /// <summary>
        /// 门店会员余额
        /// </summary>
        public decimal ShopBalance { get; set; }
    }

    #region 会员详细档案
    /// <summary>
    /// 会员详细档案Resp
    /// </summary>
    public class MemberDetailResp
    {

        /// <summary>
        /// 等级图标对应字段
        /// </summary>
        public int GradeNum { get; set; }

        /// <summary>
        /// 会员等级ICON地址
        /// </summary>
        public string GradeIconUrl { get; set; }

        /// <summary>
        /// 会员营销顾问关系主键ID
        /// </summary>
        public Guid ID { get; set; }

        /// <summary>
        /// 会员ID
        /// </summary>
        public Guid MemberID { get; set; }

        /// <summary>
        /// 关联店铺ID
        /// </summary>
        public Guid ShopID { get; set; }

        /// <summary>
        /// 人脸识别id
        /// </summary>
        public string FaceId { get; set; }

        /// <summary>
        /// 人脸识别图片集合数量
        /// </summary>
        public int FaceCount { get; set; }

        /// <summary>
        /// 会员名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 销售顾问名称
        /// </summary>
        public string ClerkName { get; set; }

        /// <summary>
        /// 店铺名称
        /// </summary>
        public string ShopName { get; set; }

        /// <summary>
        /// Desc:头像地址
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string HeadImgUrl { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string Mobile { get; set; }

        /// <summary>
        /// 等级
        /// </summary>
        public string GradeName { get; set; }

        /// <summary>
        /// 余额
        /// </summary>
        public decimal Account { get; set; }

        /// <summary>
        /// 积分
        /// </summary>
        public decimal? Integral { get; set; }

        /// <summary>
        /// 已打标签数
        /// </summary>
        public int TagAmount { get; set; }        

        /// <summary>
        /// 生日 "月-日"
        /// </summary>
        public string BirthDay { get; set; }

        /// <summary>
        /// 生日  "年-月-日"
        /// </summary>
        public DateTime? BirthDay2 { get; set; }

        /// <summary>
        /// 上次到店时间
        /// </summary>
        public string LastShopTime { get; set; }

        /// <summary>
        /// 注册时间
        /// </summary>
        public string CreateTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Note { get; set; }

        /// <summary>
        /// 是否已添加微信  0=否;1=是      
        /// </summary>           
        public int? IfAddWx { get; set; }

        /// <summary>
        /// 是否已添加社区  0=否;1=是       
        /// </summary>           
        public int? IfAddCommunity { get; set; }


        ///// <summary>
        ///// 会员已绑定的标签
        ///// </summary>
        //public List<MemberTagResp> tagLogList { get; set; }

        /// <summary>
        /// 会员卡券信息
        /// </summary>
        public List<MemberCardListResp> cardList { get; set; }

        /// <summary>
        /// 剩余服务列表
        /// </summary>
        public List<ServiceInvInfo> serviceInvList { get; set; }

        /// <summary>
        /// 剩余服务次数
        /// </summary>
        public int ServiceQty { get; set; }

        /// <summary>
        /// 店铺的加盟商ID
        /// </summary>
        public Guid? CustomerID { get; set; }

        /// <summary>
        /// 会员资料增加来源 0= 其他; 1= 抖音; 2= 美团; 3=自来客; 4=老客转介绍        
        /// </summary>           
        public int? AddFromType { get; set; }
        /// <summary>
        /// 会员资料增加来源文本显示
        /// </summary>
        public string AddFromTypeName { get; set; }

        /// <summary>
        /// Desc:年龄，店员手填     
        /// </summary>           
        public int? Age { get; set; }

    }

    public class MemberCardListResp
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 留店设置  1 留店   0  提走
        /// </summary>
        public int IfStaystore { get; set; }

        /// <summary>
        /// 卡套数量
        /// </summary>
        public int Qty { get; set; }
    }
    #endregion

    #region 拟邀名单列表
    /// <summary>
    /// 会员Resp
    /// </summary>
    public class InviteMemberResp
    {
        /// <summary>
        /// 会员营销顾问关系主键ID(拟邀名单列表使用)
        /// </summary>
        public Guid ID { get; set; }

        /// <summary>
        /// 会员ID
        /// </summary>
        public Guid MemberID { get; set; }

        /// <summary>
        /// 会员名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Desc:头像地址
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string HeadImgUrl { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string Mobile { get; set; }

        /// <summary>
        /// 上次到店时间
        /// </summary>
        public string LastShopTime { get; set; }
    }
    #endregion


    #region 邀约管理-4.0版本根据条件获取会员邀约列表
    /// <summary>
    /// 邀约管理-4.0版本根据条件获取会员邀约列表
    /// </summary>
    public class MemberOfInvite40Resp
    {
        /// <summary>
        /// 会员营销顾问关系主键ID
        /// </summary>
        public Guid ID { get; set; }

        /// <summary>
        /// 会员ID
        /// </summary>
        public Guid MemberID { get; set; }

        /// <summary>
        /// 会员名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 销售顾问名称
        /// </summary>
        public string ClerkName { get; set; }

        /// <summary>
        /// Desc:头像地址
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string HeadImgUrl { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string Mobile { get; set; }        

        /// <summary>
        /// 上次到店时间
        /// </summary>
        public string LastShopTime { get; set; }

        /// <summary>
        /// 回店提醒时间
        /// </summary>
        public string RecentRemindersTime { get; set; }

        /// <summary>
        /// 1=修改邀约; 0=马上邀约
        /// </summary>
       public int HadInvite { get; set; }
        /// <summary>
        /// 获取邀约详情的ID
        /// </summary>
        public Guid? InviteId { get; set; }
    }
    #endregion
}
